package ch10_thread.thread;

/**
 * 局部性原理，缓存行，规定按照64bytes，进行取
 * 缓存一致性是硬件级别的
 *
 * @author guodd
 * @version 1.0 use jdk 1.8
 */
public class CacheLine {
    public static void main(String[] args) {
        System.out.println(Thread.currentThread().getName());
        new Thread(() -> {
            System.out.println("java");
            System.out.println(Thread.currentThread().getName());
        }).start();
    }
}
